#include "LinuxUtility.h"
#include <time.h>
#include <dirent.h>

unsigned int GetTickCount()
{
	struct timeval tv;
	if(gettimeofday(&tv, NULL)!= 0)
		return 0;
	return (tv.tv_sec*1000)+(tv.tv_usec/1000); 
}

bool IsDirectory(const char* pszPath)
{
	assert(pszPath!=NULL);
	DIR* pDir = opendir(pszPath);
	if (pDir==NULL)
	{
		return false;
	}
	closedir(pDir);
	return true;
}